package com.bbzn.device.client.service;

import java.util.List;
import com.bbzn.device.client.dataobject.Switch;

public interface SwitchService {


    int deleteByPrimaryKey(Long id);

    int insert(Switch record);

    int insertOrUpdate(Switch record);

    int insertOrUpdateSelective(Switch record);

    int insertSelective(Switch record);

    Switch selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Switch record);

    int updateByPrimaryKey(Switch record);

    List<Switch> findByAll(Switch record);

    int updateBatch(List<Switch> list);

    int batchInsert(List<Switch> list);

    List<Boolean> checkSwitchByTemp(Switch record);

    List<Boolean> checkSwitchByRate(Switch record);

    List<Boolean> checkSwitchByOxy(Switch record);

    List<Boolean> checkSwitchByPower(Switch record);

    List<Boolean> checkSwitchByYgObs(Switch record);

    List<Boolean> checkSwitchByOffWear(Switch record, Integer state);

    List<Boolean> checkSwitchByFence(Switch record, Integer fenceCode);

    List<Boolean> checkSwitchByVoltage(Switch record);

    List<Boolean> checkSwitchByCrash(Switch record);

    List<Boolean> checkSwitchByFallDown(Switch record);

    List<Boolean> checkSwitchByHarmfulGas(Switch record);

    List<Boolean> checkSwitchBySOS(Switch record);

    List<Boolean> checkSwitchByTemperature(Switch record);

    List<Boolean> checkSwitchByElevation(Switch record);

    int updateBatchSelective(List<Switch> list);
}




